home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / dos_win / winsock / maillist / 94-03.Z / 94-03 / text0350.txt < prev    next >
Encoding:
Text File  |  1994-03-30  |  1.5 KB  |  46 lines

  1. > From: Ted Pederson <tjp@twg.com>
  2. > Date: Fri, 25 Mar 1994 10:49:56 -0500
  3.  
  4. Hi Ted,
  5.  
  6. > I have 2 questions on the 1.1 winsock spec regarding FD_WRITE.
  7. > First,  if a winsock client calls WSAAsyncSelect a second time,  will
  8. > an FD_WRITE message be sent to the client  (assuming readiness for
  9. > writing)?  
  10.  
  11. It's supposed to happen that way (assuming you've asked for FD_WRITE
  12. notification in your WSAAsyncSelect() call, of course).
  13.  
  14. Some reports have indicated that calling WSAAsyncSelect() either
  15. 'too often' and/or 'in a superfluous manner', _seems_ to cause
  16. problems with some WinSock.DLLs.
  17.  
  18. > Second,  why are send() and sentto() listed as re-enabling functions
  19. > for FD_WRITE (on p. 90)?  Each time send() is called the winsock
  20. > library is not supposed to post an FD_WRITE message,  right?  Only
  21. > after a send() or sentto() fails,
  22.  
  23. ...with WSAEWOULDBLOCK only...
  24.  
  25. > and then buffer space becomes available,  was my understanding.
  26.  
  27. Correct.
  28.  
  29. > Just wanted to make sure...
  30.  
  31. I think you might be just being a bit overly literal on this...
  32. I think it's adequately explained that the send()/sendto() re-enablers
  33. are qualified by the WSAEWOULDBLOCK/free buffer space cycle.
  34.  
  35. But, then again, I'm just trying to make sure I understand it too!
  36.  
  37. Still hazy after all these years,
  38.  
  39. BobN
  40. ________________________________________________________________
  41. Bob Natale            | American Computer     | 301-258-9850 [v]
  42. Director              | 209 Perry Pkwy        | 301-921-0434 [f]
  43. Network Mgmt Products | Gaithersburg MD 20877 | natale@acec.com
  44.  
  45.  
  46.